-
Notifications
You must be signed in to change notification settings - Fork 607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
whitelist lockup query AccountLockedCoins #5906
whitelist lockup query AccountLockedCoins #5906
Conversation
QueryProposal can have pretty unknown gas costs, especially if its a CosmWasm prop, that needs to load the entire code |
Sure, whitelisting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we can add this, but warning that this can have unbounded gas and you probably don't want to actually use this in production. You'd much rather have the FE get the lock-id's, and then do the query based on provided lock ID's
I'm happy to add this in, just warning that may not work how you want
The issue is that it iterates over every single lock the user has. So if they've LP'd in like 50 different pools, thats quite expensive gas wise! (And you probably only care about a small subset)
Hi @Buckram123 . Based on the latest reply, would you still like to get this whitelisted? |
Hey, yes, that would be really helpful! |
Could you please resolve the conflict? Also, do you mind summarizing ValarDragon's reply via comment above the line whitelisting this query? |
@p0mvn done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Merging since all requests have been addressed |
* whitelist AccountLockedCoins * update changelog * format changelog * add gov.query/proposal * remove query proposal from whitelist * summarize reply via comment
* whitelist AccountLockedCoins * update changelog * format changelog * add gov.query/proposal * remove query proposal from whitelist * summarize reply via comment
What is the purpose of the change
This PR adds lockup query(namely AccountLockedCoins) to stargate query whitelist.
Documentation and Release Note
Unreleased
section ofCHANGELOG.md
?Background
AccountLockedCoins
.